package com.eig.order.service.impl;

import com.aaa.dao.TeacherListDao;
import com.aaa.entity.EduTeacher;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.eig.common.entity.order.TOrder;
import com.eig.order.service.TOrderTeacherService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author ：liu666
 * @date ：
 * @description：
 * @modified By：
 * @version:
 */
@Service("tOrderTeacherService")
public class TOrderTeacherServiceImpl implements TOrderTeacherService {
    @Resource
    TeacherListDao teacherListDao;

    @Override
    public EduTeacher getTeacher(String name) {
        QueryWrapper<EduTeacher> wrapper = new QueryWrapper<>();
        wrapper.eq("name",name);
        return teacherListDao.selectOne(wrapper);
    }
}
